Crate toad_stem

source ·
Expand description

This microcrate provides a mutable memory wrapper that is thread-safe and usable on no_std platforms by using std::sync::RwLock when crate feature std is enabled (this is the default) and falling back to core::cell::Cell when std disabled.

the API of the core struct Stem was chosen to discourage long-lived immutable references to the cell’s contents, so that deadlocks are less likely.

Structs

  • A thread-safe mutable memory location that allows for many concurrent readers or a single writer.

Traits